package com.qdu.bussiness.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qdu.common.annotation.Excel;
import com.qdu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 入库记录对象 bus_entry
 * 
 * @author qdu
 * @date 2022-03-05
 */
public class BusEntry extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long entryId;

    /** 物料ID */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long itemId;

    /** 物料名称 非表字段 **/
    private String itemName;

    /** 物料编号 */
    @Excel(name = "物料编号")
    private String itemNo;

    /** 库房 */
    @Excel(name = "库房")
    private String storageRoom;

    /** 库区 */
    @Excel(name = "库区")
    private String storageArea;

    /** 库位 */
    @Excel(name = "库位")
    private String storagePosition;

    /** 入库类型 */
    @Excel(name = "入库类型")
    private String entryType;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Long entryNum;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date entryTime;

    /** 入库状态 */
    private String entryStatus;

    public void setEntryId(Long entryId) 
    {
        this.entryId = entryId;
    }

    public Long getEntryId() 
    {
        return entryId;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setItemNo(String itemNo) 
    {
        this.itemNo = itemNo;
    }

    public String getItemNo() 
    {
        return itemNo;
    }
    public void setStorageRoom(String storageRoom) 
    {
        this.storageRoom = storageRoom;
    }

    public String getStorageRoom() 
    {
        return storageRoom;
    }
    public void setStorageArea(String storageArea) 
    {
        this.storageArea = storageArea;
    }

    public String getStorageArea() 
    {
        return storageArea;
    }
    public void setStoragePosition(String storagePosition) 
    {
        this.storagePosition = storagePosition;
    }

    public String getStoragePosition() 
    {
        return storagePosition;
    }
    public void setEntryType(String entryType) 
    {
        this.entryType = entryType;
    }

    public String getEntryType() 
    {
        return entryType;
    }
    public void setEntryNum(Long entryNum) 
    {
        this.entryNum = entryNum;
    }

    public Long getEntryNum() 
    {
        return entryNum;
    }
    public void setEntryTime(Date entryTime) 
    {
        this.entryTime = entryTime;
    }

    public Date getEntryTime() 
    {
        return entryTime;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getEntryStatus() {
        return entryStatus;
    }

    public void setEntryStatus(String entryStatus) {
        this.entryStatus = entryStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("entryId", getEntryId())
            .append("itemId", getItemId())
            .append("itemNo", getItemNo())
            .append("storageRoom", getStorageRoom())
            .append("storageArea", getStorageArea())
            .append("storagePosition", getStoragePosition())
            .append("entryType", getEntryType())
            .append("entryNum", getEntryNum())
            .append("entryTime", getEntryTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
